<!-- left nav start -->
<div class="index_left fl">
    <div class="logo"><img src="/static/images/logo.jpg"  /></div>
    <div class="nav">
        <ul>
            {% for nav in navs -%}
            <li><a href="{{nav.url}}">{{nav.name}}</a></li>
            {% endfor -%}
        </ul>
    </div>
</div>
<!-- left nav end-->
<script type="text/javascript">
var navs = $("li", $(".nav:first"));
navs.each(function() { navs.attr("id", ""); });
var current_url = location.pathname;
navs.each(function() {
    var that = $(this);
    var link = $("a:first", that).attr("href");
    if (link == current_url) { 
        that.attr("id", "nav_01");
    }
});
</script>
